#region license
# This file is part of Grawlix.
# 
# Grawlix is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
# 
# Grawlix is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public
# License along with Grawlix.  If not, see
# <http://www.gnu.org/licenses/>.
#endregion

"""Internal data for the disposable pattern."""

namespace Grawlix.Meta
import Boo.Lang.Compiler

internal transient class DisposableData:
"""Information about the disposable attribute application."""
	
	[property(Alias)]
	private _alias as string
	"""The name of the alias to make."""
	
	[property(SharedCleanup)]
	private _sharedCleanup as string
	"""The name of the unmanaged cleanup function to call."""
	
	[property(WantFinalizer)]
	private _wantFinalizer as bool
	"""Whether a finalizer is always needed."""
	
	[property(LexicalInfo)]
	private _lexicalInfo as Ast.LexicalInfo
	"""The location of syntax information."""

